package com.rabbit.vo.req;

import com.rabbit.dto.PageInfoDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * <h1>Token管理请求封装</h1>
 *
 * @author zjw
 * @date 2022/1/19 9:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TokenReq extends PageInfoDTO {

    /**
     * 所属设备
     */
    private String device;

    /**
     * 登录账号
     */
    private String loginAccount;

    /**
     * Token
     */
    @NotEmpty(message = "Token不能为空")
    private String token;
}
